package com.hotel.room.mapper;

import com.hotel.user.entity.HotelRoom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hotel.user.entity.HotelRoomCollect;
import com.hotel.user.entity.HotelRoomOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 酒店客房信息表 Mapper 接口
 * </p>
 *
 * @author trc
 * @since 2024-06-17
 */
public interface HotelRoomMapper extends BaseMapper<HotelRoom> {

    Integer selectStatusById(Integer roomId);

    HotelRoom selectRoomById(Integer roomId);

    List<Integer> selectAllRoomId();

    int updateRateById(@Param("avg") double avg, @Param("roomId") Integer roomId);
}
